/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PoJo;

import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class OrderPOJO 
{
    private String MaOrder;
    private String MaKhachHang;
    private Date ThoiGianTao;
    private int TongTien;
    private String DiaChiGiaoHang;
    private String TinhTrang;
    private Date NgayBatDauGiao;
    private Date NgayKetThuc;
    
    // phuong thuc khoi tao

    public OrderPOJO(String MaOrder, String MaKhachHang, Date ThoiGianTao, int TongTien, String DiaChiGiaoHang, String TinhTrang, Date NgayBatDauGiao, Date NgayKetThuc) 
    {
        this.MaOrder = MaOrder;
        this.MaKhachHang = MaKhachHang;
        this.ThoiGianTao = ThoiGianTao;
        this.TongTien = TongTien;
        this.DiaChiGiaoHang = DiaChiGiaoHang;
        this.TinhTrang = TinhTrang;
        this.NgayBatDauGiao = NgayBatDauGiao;
        this.NgayKetThuc = NgayKetThuc;
    }
    
    public OrderPOJO() 
    {
        this.MaOrder = null;
        this.MaKhachHang = null;
        this.ThoiGianTao = new Date();
        this.TongTien = 0;
        this.DiaChiGiaoHang = null;
        this.TinhTrang = null;
        this.NgayBatDauGiao = new Date();
        this.NgayKetThuc = new Date();
    }
    
    public OrderPOJO(OrderPOJO Or) 
    {
        this.MaOrder = Or.MaOrder;
        this.MaKhachHang = Or.MaKhachHang;
        this.ThoiGianTao = Or.ThoiGianTao;
        this.TongTien = Or.TongTien;
        this.DiaChiGiaoHang = Or.DiaChiGiaoHang;
        this.TinhTrang = Or.TinhTrang;
        this.NgayBatDauGiao = Or.NgayBatDauGiao;
        this.NgayKetThuc = Or.NgayKetThuc;
    }
    
    // phuong thuc get set 

    public String getDiaChiGiaoHang() {
        return DiaChiGiaoHang;
    }

    public void setDiaChiGiaoHang(String DiaChiGiaoHang) {
        this.DiaChiGiaoHang = DiaChiGiaoHang;
    }

    public String getMaKhachHang() {
        return MaKhachHang;
    }

    public void setMaKhachHang(String MaKhachHang) {
        this.MaKhachHang = MaKhachHang;
    }

    public String getMaOrder() {
        return MaOrder;
    }

    public void setMaOrder(String MaOrder) {
        this.MaOrder = MaOrder;
    }

    public Date getNgayBatDauGiao() {
        return NgayBatDauGiao;
    }

    public void setNgayBatDauGiao(Date NgayBatDauGiao) {
        this.NgayBatDauGiao = NgayBatDauGiao;
    }

    public Date getNgayKetThuc() {
        return NgayKetThuc;
    }

    public void setNgayKetThuc(Date NgayKetThuc) {
        this.NgayKetThuc = NgayKetThuc;
    }

    public Date getThoiGianTao() {
        return ThoiGianTao;
    }

    public void setThoiGianTao(Date ThoiGianTao) {
        this.ThoiGianTao = ThoiGianTao;
    }

    public String getTinhTrang() {
        return TinhTrang;
    }

    public void setTinhTrang(String TinhTrang) {
        this.TinhTrang = TinhTrang;
    }

    public int getTongTien() {
        return TongTien;
    }

    public void setTongTien(int TongTien) {
        this.TongTien = TongTien;
    }
    
    
    
    
    
    
}
